Page({
  data: {
    userInfo: {}
  },

  onShow() {
    this.setData({
      userInfo: wx.getStorageSync('userInfo') || {}
    });
  },

  onEmergency() {
    wx.navigateTo({
      url: '/pages/user/emergency'
    });
  }
});